<extend name="Top::Top" />

	<!-- 在这个block 里面添加新的内容 -->
   <block name="conter">
  
    <div class="rig_lm03">
      <div class="title"><img src="__PUBLIC__/Admin/admin_images/listicon.jpg" class="icon" style="padding-top:13px;">
        <h2>分类管理中心</h2>
      </div>
     
      <div class="detail">
        <div class="inner03">
          <div id="tabCot_product" class="zhutitab">
            <div class="tabContainer">
            <a href="{:U('Category/adds')}"><button class="tabContainer_add">添加分类</button></a>
             <input type="text" name="" class="tabContainer_in1" /> <input type="submit" value="搜索" class="tabContainer_in2" />
            <input type="checkbox" name="is_new" value="1">一级分类
            <input type="checkbox" name="is_hot" value="1">二级分类
            <input type="checkbox" name="is_bast" value="1">三级分类
               
              <div class="clear"></div>
            </div>
            <div id="tabCot_product_1" class="tabCot" >
              <table class="tabindex" width="1063" border="0" cellpadding="0" cellspacing="0" align="center">
              
                <tr><!--         <span class="titlab">库存</span><span class="xila">&or;</span> -->
                  <th width="80" bgcolor="#f8f8f8" scope="col">ID</th>
                  <th width="100" bgcolor="#f8f8f8" >类级别</th>
                  <th width="80" bgcolor="#f8f8f8" scope="col">PID</th>
                  <th width="100" bgcolor="#f8f8f8" scope="col">状态</th>
                  <th width="150" bgcolor="#f8f8f8" scope="col">添加时间</th>
                  <th width="130" bgcolor="#f8f8f8" scope="col">操作</th>
                </tr>
                <foreach name="category" item="val">
                <tr>
                  <td bgcolor="#FFFFFF">{$val['id']}</td>
                  <td class="datacol" bgcolor="#FFFFFF">{$val['name']}</td>
                  <td bgcolor="#FFFFFF">{$val['pid']}</td>
                  <td class="yccol" bgcolor="#FFFFFF">
						<if condition="($val['status'])==1"> <a href="">显示</a>
                  		<elseif condition="($val['status'])==0"/><a href="">禁用</a>
                  		</if>

                  </td>
                  <td bgcolor="#FFFFFF">{$val.addtime|date='Y-m-d',###}</td>
             	  <td bgcolor="#FFFFFF"><a href="{:U('Category/index')}?id={$val['id']}">查看分类</a>&nbsp;&nbsp;&nbsp;<a href="">修改</a>&nbsp;&nbsp;&nbsp;<a href="{:U('Category/delete')}?id={$val['id']}" class="yccol">删除</a></td>
                </tr>
        		</foreach>
          		<tr>

          			<a href="{:U('index',['pid'=>$val['pid']])}"><button class="tabContainer_black">返回</button></a>
          		  <!-- :U('index')当前控制器的index方法 -->
          		</tr>
              </table>

              <div class="fanye">
                <p class="fytip">联系客服 @15821203194</p>
                <div class="yem">
                  <ul>
                    <li><a href="#">First</a></li>
                    <li><a href="#">&lt;</a></li>
                    <li class="sellify"><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">&gt;</a></li>
                    <li><a href="#">Last</a></li>
                  </ul>
                </div>
              </div>
            </div>
            <div id="tabCot_product_2" class="tabCot"  style="display: none;"> 2222222222 </div>
            <div id="tabCot_product_3" class="tabCot"  style="display: none;"> 3333333333 </div>
            <script language="JavaScript" type="text/javascript" src="js/tab.js"></script> 
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="footer"></div>
</body>
</html>
</block>
</block>